<ion-view view-title="商品管理">
    <ion-content>

        <div class="card" ng-repeat="(index,product) in productlist">
            <ion-item>编号: {{product.product_id}}</ion-item>
            <ion-item>名称: {{product.product_name}}</ion-item>
            <ion-item>类别: {{product.product_type}}</ion-item>
            <ion-item>价格:￥{{product.product_price}} </ion-item>
            <ion-item>数量:{{product.product_number}} </ion-item>
            <ion-checkbox ng-model="isChecked">修改</ion-checkbox>
            <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">名称</span>
    <input type="text" ng-model="product.product_name" ng-value="product.product_name">
            </ion-item>
             <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">类别</span>
    <input type="text" ng-model="product.product_type" ng-value="product.product_type">
            </ion-item>
             <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">价格</span>
    <input type="text" ng-model="product.product_price" ng-value="product.product_price">
            </ion-item>
             <ion-item ng-show="isChecked">
                <label class="item item-input">
    <span class="input-label">数量</span>
    <input type="text" ng-model="product.product_number" ng-value="product.product_number">
            </ion-item>
             <ion-item ng-show="isChecked">
                <button ng-click="modify(index)" class="button button-balanced button-outline button-block">确认修改</button>
            </ion-item>
            </div>

    </ion-content>
</ion-view>